<template>
    <div class="top-bar-view">
        top-bar-view
    </div>
</template>

<script setup>
import { getUserInfo } from '../api/user'
import { ref, onMounted } from 'vue'
const userInfo = ref({})

onMounted(async () => {
    const res = await getUserInfo()
    if (res.code === 200) {
        userInfo.value = res.data
    }
})

</script>

<style scoped>
.top-bar-view {
    width: 100%;
    height: 100%;
}
</style>